# -*- coding: utf-8 -*-
"""
 @Time    : 2021/2/1 下午5:47
 @Author  : tgy
 
"""

class Person(object):
    __slots__ = ['name']

    def __init__(self):
        self.name = '1111'

    """
    在object类中有一个默认属性为__dict__
    __dict__ = {}
    """
    def __setattr__(self, key, value):
        ...
        # super().__setattr__(key,value)
        # print(self.__dict__)

    def run(self):
        ...

if __name__ == '__main__':
    ...
    print(Person.run)
    per = Person()
    # per.opt = 111
    # print(per.__dict__ is object.__dict__)
    print(per.run)
